<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>制作简易的当当购物车页面</title>
    <link type="text/css" rel="stylesheet" href="css/cartStyle.css" />
</head>
<body>

<div class="content">
    <div class="logo">
        <img src="images/dd_logo.jpg"><span  id="d1"  >关闭</span>
    </div>
    <div class="cartList">
        <ul>
            <li  id="d2">移入收藏</li>
            <li  id="d3">删除</li>
            
            <li  id="d4"><span>结 算</span></li>
        </ul>
    </div>
</div>
<script>
 
     d1.onclick=function(){
        close();

     };
     d2.onclick =function(){
         alert("收藏了");
     };

d3.onclick=function(){
    if(confirm('你确定要删除这个订单吗')){
        alert("删除成功");
}
     };
     d4.onclick=function(){
         location="images/shoppingBg.jpg";
     };
</script>
</body>
</html>